export default {
  name: "rendrCpn",
  functional: true,
  props: {
    scope: {
      type: Object,
      required: true,
    },
    render: Function,
  },
  render: function (createElement, ctx) {
    const row = {
      row: ctx.props.scope.row,
      index: ctx.props.scope.$index, // 当前页中第几行
    };
    return ctx.props.render(createElement, row);
  },
};
